package com.zygh.policeasset.mapper;

import com.zygh.policeasset.pojo.TaskSource;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/mapper/TaskSourceMapper.class */
public interface TaskSourceMapper {
    @Select({"select  * from task_source "})
    List<TaskSource> queryAll();

    @Insert({"insert into task_source(name) values(#{name})"})
    int insert(String str);

    @Update({"<script>update task_source <set><if test='name != null and name.length &gt; 0'> name=#{name},</if></set> where id = #{id}</script>"})
    int update(TaskSource taskSource);

    @Delete({"delete from task_source where id = #{id}"})
    int deleteById(Integer num);
}